<?php
/**
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$template_dir = $this->baseurl.'/templates/'.$this->template.'/';
jimport('mylibs.globalModel');
$globalModel = new globalModel();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Visions Graphic</title>

<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/styles.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/typography.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $template_dir;?>css/menu.css" />
<link rel="stylesheet" href="<?php echo $template_dir;?>css/slimbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo $template_dir;?>js/mootools1-2.js"></script>
<?php if ( ($globalModel->isHomePage()) || ($globalModel->isKontaktPage()) ) { ?>
<script type="text/javascript" src="<?php echo $template_dir;?>js/slimhtml.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>js/jquery-1.4.3.min.js"></script>
<?php } ?>
<script type="text/javascript">
	function showSlidingDiv(){
		if($("#slidingDiv").css("display") != "none") $("#slidingDiv").css("display","none");
		$("#newsletterform").animate({"width": "toggle"}, { duration: 500,
														complete: function() {
															$("#slidingDiv").fadeIn("fast");
														}
		});		
	}
</script>
</head>
<body>
<div id="wrapper">
    <div id="page">
        <div id="top">
            <div class="inner clearfix">            	
                <div class="lang">
                	<jdoc:include type="modules" name="user4" />
                </div>
            </div>
        </div><!--top-->
        
        <div id="header">
            <div class="inner clearfix">
                <div id="logo"><a href="index.php"><img src="<?php echo $template_dir;?>img/logo.png" alt="Visions Graphic" /></a></div>
                <div id="main-menu">
                    <jdoc:include type="modules" name="left" />
                </div>
            </div>
        </div><!--header-->
        
        <jdoc:include type="component" /><!--main-container-->
        
        <div id="footer">
            <div class="inner clearfix">
            	<?php
            		 $dataFooter = $globalModel->getArticle(78);
            		 print $dataFooter['introtext'];
            	?>
            </div>
        </div><!--footer-->
        
    </div><!--page-->
</div><!--wrapper-->
	
<div id="userpanels">
	<?php 
	if ( ($globalModel->isHomePage()) || ($globalModel->isKontaktPage()) ) { 
	?>	
	   <div id="newsletterform" style="display: none;">
	    <div id="slidingDiv" class="newsletter-inner" style="display: none;">
	    	<?php
            	 $dataNewsletter = $globalModel->getArticle(100);
            	 print $dataNewsletter['introtext'];
            ?>
	    	<jdoc:include type="modules" name="newsletter" />
	    </div>
	    </div>    
	    <a id="toggle" href="#" onClick="showSlidingDiv(); return false;"> </a>
    <?php 		
    } else { ?>
	    <div id="newsletterform">
	    	<div class="newsletter-inner">
	            <?php
	            	 $dataNewsletter = $globalModel->getArticle(100);
	            	 print $dataNewsletter['introtext'];
	            ?>
		    	<jdoc:include type="modules" name="newsletter" />
	        </div>
	    </div>
    	<a id="toggle" href="javascript:void(0)"> </a>
    <?php } ?>
</div>

</body>
</html>
